package com.example.pda.data.model;

import java.io.Serializable;
import java.util.List;

/**
 * {
 * 	"ddh": "",
 * 	"cgyname": "",
 * 	"gysname": "",
 * 	"ctcode": "",
 * 	"htname": "",
 * 	"remark": "",
 * 	"dataList": [{
 * 		"invcode": "",
 * 		"invname": "",
 * 		"ggxh": "",
 * 		"meaname": "",
 * 		"ddnum": "",
 * 		"totalarrnum": "",
 * 		"totalstocknum": "",
 * 		"totaloutnum": ""
 * 	}]
 * }
 */
public class PurchaseOrder implements Serializable {
    public static final long serialVersionUID = -15515456L;

    // 订单号
    private String ddh;

    // 库管员
    private String cgyname;

    // 供应商名称
    private String gysname;

    // 合同号
    private String ctcode;

    // 合同名称
    private String htname;

    // 备注
    private String remark;

    private List<ItemOrder> dataList;

    public void setDdh(String ddh){
        this.ddh = ddh;
    }
    public String getDdh(){
        return this.ddh;
    }
    public void setCgyname(String cgyname){
        this.cgyname = cgyname;
    }
    public String getCgyname(){
        return this.cgyname;
    }
    public void setGysname(String gysname){
        this.gysname = gysname;
    }
    public String getGysname(){
        return this.gysname;
    }
    public void setCtcode(String ctcode){
        this.ctcode = ctcode;
    }
    public String getCtcode(){
        return this.ctcode;
    }
    public void setHtname(String htname){
        this.htname = htname;
    }
    public String getHtname(){
        return this.htname;
    }
    public void setRemark(String remark){
        this.remark = remark;
    }
    public String getRemark(){
        return this.remark;
    }
    public void setDataList(List<ItemOrder> dataList){
        this.dataList = dataList;
    }
    public List<ItemOrder> getDataList(){
        return this.dataList;
    }

    public static class ItemOrder implements Serializable {
        private String invcode;
        private String invname;
        // 规格型号
        private String ggxh;
        // 计量单位
        private String meaname;
        // 订单数量
        private String ddnum;
        // 累计到货数量
        private String totalarrnum;
        // 累计入库数量
        private String totalstocknum;
        // 累计退货数量
        private String totaloutnum;

        public String getInvcode() {
            return invcode;
        }

        public void setInvcode(String invcode) {
            this.invcode = invcode;
        }

        public String getInvname() {
            return invname;
        }

        public void setInvname(String invname) {
            this.invname = invname;
        }

        public String getGgxh() {
            return ggxh;
        }

        public void setGgxh(String ggxh) {
            this.ggxh = ggxh;
        }

        public String getMeaname() {
            return meaname;
        }

        public void setMeaname(String meaname) {
            this.meaname = meaname;
        }

        public String getDdnum() {
            return ddnum;
        }

        public void setDdnum(String ddnum) {
            this.ddnum = ddnum;
        }

        public String getTotalarrnum() {
            return totalarrnum;
        }

        public void setTotalarrnum(String totalarrnum) {
            this.totalarrnum = totalarrnum;
        }

        public String getTotalstocknum() {
            return totalstocknum;
        }

        public void setTotalstocknum(String totalstocknum) {
            this.totalstocknum = totalstocknum;
        }

        public String getTotaloutnum() {
            return totaloutnum;
        }

        public void setTotaloutnum(String totaloutnum) {
            this.totaloutnum = totaloutnum;
        }
    }

}
